package com.certificationManager.client.service;

import com.certificationManager.client.bean.UserBean;
import com.google.gwt.user.client.rpc.AsyncCallback;

/**
 * @author Benjamin Barbier
 *
 */
public interface UserServiceAsync {
	
	/**
	 * @param user
	 * @throws Exception
	 */
	void register(UserBean user, AsyncCallback<Void> callback);
	
	/**
	 * @param email
	 * @param password
	 */
	void isRegistered(String email, String password, AsyncCallback<Boolean> callback);
	
	/**
	 * @param key
	 * @param callback
	 */
	void getUser(String key, AsyncCallback<UserBean> callback);
}
	